#include <iostream>
using namespace std;
#include "point2.h"

Point::Point(int xValue, int yValue)
{
	x = xValue;
	y = yValue;
	cout << "Point constructor:";
	print();
}
Point::~Point()
{
	cout << "Point destructor:";
	print();
}
void Point::setX(int xValue)
{
	x = xValue;
}
int Point::getX() const
{
	return x;
}
void Point::setY(int yValue)
{
	y = yValue;
}
int Point::getY() const
{
	return y;
}

void Point::print() const
{
	cout << "[" << getX() << "," << getY() << "]" << "\n";
}
